import {useParams} from "react-router-dom";

const Article = () => {
    // 获取路径传入的参数
    const params = useParams();
    return (
        <div>
            <h2>我是文章页面</h2>
            <h3>title:{params.title}</h3>
            <h3>content:{params.content}</h3>
        </div>
    )
}

export default Article
